package com.component.api.model.data;

import com.component.api.model.AbstractData;
import com.component.api.model.DataType;
import lombok.Data;

/**
 * 描述：
 * 流式数据
 * @author xianggj
 * @Date 2021/10/12 17:16
 **/
@Data
public class StreamData extends AbstractData {

    private static final long serialVersionUID = -1L;

    private Object data;

    public StreamData() {
    }

    public StreamData(DataType type, Object data) {
        super(DataType.STREAM);
        this.data = data;
    }
}
